export default {
    togHeadDetail(state, bool){
        try{
            state.togHeadDetail=bool;
            window.localStorage.togHeadDetail=bool;
        }catch (e) {}
    },
    clickGoodsMenu(state, index){
        try{                                    console.log(index)
            state.clickGoodsMenu=index;
            window.localStorage.clickGoodsMenu=index;
        }catch (e) {}
    },
    scrollGoodsMenu(state, scrollY){
        try{
            state.scrollGoodsMenu=scrollY;
            window.localStorage.scrollGoodsMenu=scrollY;
        }catch(e){}
    },
    scrollGoodsItem(state, scrollY){
        try{                                    console.log(scrollY)
            state.scrollGoodsItem=scrollY;
            window.localStorage.scrollGoodsItem=scrollY;
        }catch(e){}
    }
}
